package com.example.demo.controller;

import com.example.demo.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {


            @RequestMapping("main")
            public String Index(User user){
                if (user.username == "zz" && user.password == "123"){
                    System.out.println("登陆成功");
                }
                return "main";
            }
}
